<?php


namespace app\common\model;


class TargetData extends BaseModel
{
    protected $name = 'target_get';

    public function getLists(string $patientId): \think\Paginator
    {
        return $this->where('patient_id', $patientId)
            ->field(["id", "created_at", "creator_id", "creator_name"])
            ->order('created_at', 'desc')
            ->paginate($this->pageLimit);
    }
}